


using Identity.Models;
using BootstrapBlazor.Components;
namespace  Identity.Interface ;

public interface INavigation
{
    /// <summary>
    /// 
    /// </summary>
    /// <returns></returns>
    List<Navigation> GetAllMenus(string userName);
    


    List<Navigation> GetAllMenus();
    



    Task<bool> SaveAsync(Navigation model, ItemChangedType changedType);

     

    Task<bool> DeleteAsync(IEnumerable<Navigation> models);
    List<string> GetMenusByRoleId(string? roleId);

    /// <summary>
    /// 
    /// </summary>
    /// <param name="roleId"></param>
    /// <param name="menuIds"></param>
    /// <returns></returns>
    bool SaveMenusByRoleId(string? roleId, List<string> menuIds);

    ///
    bool GetMenusByUsernaem(string? userName, string menu, string appid);
}
